/*
 * ServerPlayer.h
 *
 *  Created on: 2010-05-28
 *      Author: mateusz
 */

#ifndef SERVERPLAYER_H_
#define SERVERPLAYER_H_

/**
 * Klasa reprezentujaca gracza na serwerze
 */

class ServerPlayer {
public:
	ServerPlayer();
	virtual ~ServerPlayer();

	void goTo(int x, int y) {
		this->x = x;
		this->y = y;
	}

	int getX() { return x; }
	int getY() { return y; }

	bool isAlive() { return alive; }
	void die() { alive = false; }
	void resurrect() { alive = true; }
private:
	int x, y;
	bool alive;
};

#endif /* SERVERPLAYER_H_ */
